#ifndef SALLE_H
#define SALLE_H


#include"creneau.h"
#include"globalheader.h"


class Creneau;


typedef std::set<Creneau*, point_less<Creneau> > ensCre;

	class Salle{
		protected:
			const int numSalle_;
			int capacite_;
			ensCre creneaux_;
			
		public:
			Salle(const int& numSalle, const int& capacite);
			int getNumSalle() const;
			int getCapacite() const;
			void setCapacite(const int& nCap);
			bool ajoutCreneau(Creneau* cr);
			void retirerCreneau(Creneau* cr);
			ensCre* getECre();

            bool operator<(const Salle& e) const;
	};
	
	std::ostream& operator<<(std::ostream& os, const Salle& s);
	
    class ComparatorSalle
    {
        bool operator()(const Salle& e1, const Salle& e2);
    };
	
#endif
